cae4686fc61413691c623bcdd6eb63423e99dd22,src/test/java/org/zwobble/mammoth/tests/styles/ParagraphMatcherTests.java,ParagraphMatcherTests,matcherWithoutConstraintsMatchesEverything,#,22
Before Change
assertTrue(ParagraphMatcher.ANY.matches(make(a(PARAGRAPH))));
Paragraph paragraphWithStyleId = make(a(PARAGRAPH,
with(STYLE, Optional.of(new Style("TipsParagraph", Optional.empty())))));
assertTrue(ParagraphMatcher.ANY.matches(paragraphWithStyleId));
Paragraph paragraphWithStyleName = make(a(PARAGRAPH,
with(STYLE, Optional.of(new Style("TipsParagraph", Optional.of("Tips Paragraph"))))));
assertTrue(ParagraphMatcher.ANY.matches(paragraphWithStyleName));
}
After Change
public void matcherWithoutConstraintsMatchesEverything() {
assertTrue(ParagraphMatcher.ANY.matches(paragraph()));
Paragraph paragraphWithStyleId = paragraph(withStyle(new Style("TipsParagraph", Optional.empty())));
assertTrue(ParagraphMatcher.ANY.matches(paragraphWithStyleId));
Paragraph paragraphWithStyleName = paragraph(withStyle(new Style("TipsParagraph", Optional.of("Tips Paragraph"))));
assertTrue(ParagraphMatcher.ANY.matches(paragraphWithStyleName));
}